package com.sinosoft.ebusiness.domain.elementManage;
// 采用工具 Hibernate Tools 3.2.4.GA (sinosoft version) 生成，请勿手工修改。

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * POJO类GeProductRationItemkindId
 */
@Embeddable
public class GeProductRationItemkindId implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8240861626265838443L;

	/** 属性险别代码 */
	private String kindCode;

	/** 属性险种代码 */
	private String riskCode;
	
	private String serialno;
	
	private String combocode;

	/**
	 * 类GeProductRationItemkindId的默认构造方法
	 */
	public GeProductRationItemkindId() {
	}

	@Column(name = "serialno")
	public String getSerialno() {
		return serialno;
	}

	public void setSerialno(String serialno) {
		this.serialno = serialno;
	}

	/**
	 * 属性险别代码的getter方法
	 */

	@Column(name = "KINDCODE")
	public String getKindCode() {
		return this.kindCode;
	}

	/**
	 * 属性险别代码的setter方法
	 */
	public void setKindCode(String kindCode) {
		this.kindCode = kindCode;
	}

	/**
	 * 属性险种代码的getter方法
	 */
	
	@Column(name = "RISKCODE")
	public String getRiskCode() {
		return this.riskCode;
	}

	/**
	 * 属性险种代码的setter方法
	 */
	public void setRiskCode(String riskCode) {
		this.riskCode = riskCode;
	}


	@Column(name = "COMBOCODE")
	public String getCombocode() {
		return combocode;
	}

	public void setCombocode(String combocode) {
		this.combocode = combocode;
	}

	public boolean equals(Object other) {
		if ((this == other)) {
			return true;
		}
		if ((other == null)) {
			return false;
		}
		if (!(other instanceof GeProductRationItemkindId)) {
			return false;
		}
		GeProductRationItemkindId castOther = (GeProductRationItemkindId) other;

		return ((this.getKindCode() == castOther.getKindCode()) || (this
				.getKindCode() != null && castOther.getKindCode() != null && this
				.getKindCode().equals(castOther.getKindCode())))
				&& ((this.getRiskCode() == castOther.getRiskCode()) || (this
						.getRiskCode() != null
						&& castOther.getRiskCode() != null && this
						.getRiskCode().equals(castOther.getRiskCode()))
				&& ((this.getSerialno() == castOther.getSerialno()) || (this
						.getSerialno() != null
						&& castOther.getSerialno() != null && this
						.getSerialno().equals(castOther.getSerialno())))
						
				&& ((this.getCombocode() == castOther.getCombocode()) || (this
								.getCombocode() != null
								&& castOther.getCombocode() != null && this
								.getCombocode().equals(castOther.getCombocode()))));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getKindCode() == null ? 0 : this.getKindCode().hashCode());
		result = 37 * result
				+ (getRiskCode() == null ? 0 : this.getRiskCode().hashCode());
		result = 37 * result
				+ (getSerialno() == null ? 0 : this.getSerialno().hashCode());
		result = 37 * result
		+ (getCombocode() == null ? 0 : this.getCombocode().hashCode());
		return result;
	}
	
	

}
